.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999999;
}

.modal-dialog {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative; /* 设置相对定位以便拖动 */
}

.modal-dialog p {
    font-size: 18px;
    padding: 15px;
    margin: 0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
    cursor: move; /* 当鼠标悬停在头部时显示移动图标 */
    position: relative; /* 添加相对定位以放置伪元素 */
}

/* 新增伪元素，覆盖关闭按钮 */
/*.modal-header::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 40px; !* 调整宽度以覆盖关闭按钮 *!
    height: 100%;
    pointer-events: none; !* 禁止拖动 *!
}*/

.modal-title {
    margin: 0;
    font-size: 1.2em;
}

.close-button {
    background: none;
    border: none;
    font-size: 2.0em;
    cursor: pointer;
    color: #aaa;
    //pointer-events: none; /* 阻止关闭按钮被拖动 */
}

.close-button:focus {
    outline: none; /* 移除焦点样式 */
}

.close-button:hover {
    color: #000;
}

.actions {
    display: flex;
    padding: 15px;
    justify-content: flex-end; /* 子元素靠右 */

    button {
        margin-right: 10px;
        padding: 5px 15px;
        border: none;
        border-radius: 3px;
        cursor: pointer;
        background-color: #575757;
        color: #fff;
    }
}

.actions .cancel {
    background-color: #575757;
}

.actions .confirm {
    background-color: #007bff;
}